package com.heima.search.service;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.search.dtos.SearchDto;
import com.heima.model.search.dtos.WordsDto;
import org.bson.types.ObjectId;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 嘉德罗斯
 * @date 2021/11/27
 */
public interface SearchService {
    ResponseResult search(SearchDto dto);

    void save(Integer id, String searchWords);

    ResponseResult load(Integer id);

    ResponseResult del(String id);

    ResponseResult associate(WordsDto dto);

    ResponseResult hot(WordsDto dto);
}
